{{define "test/test.html"}} {{ template "header" . }}

<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="ibox-title">
            test / test记录
        </div>
        <div role="form" class="form-inline">
            <form class="m-t" action="#" method="post" target="_self">
                <div class="form-group">
                    <input type="text" name="status" placeholder="请输入status" class="form-control" value="{{ .status }}">
                </div>
                <button type="submit" class="btn btn-white"><i class="fa fa-search"></i> 搜索</button>
            </form>
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-content">
                            <div class="table-responsive">
                                <table class="table">
                                    <thead>
                                        <tr>
                                            <th></th>
                                            <th>ID</th>
                                            <th>Title</th>
                                            <th>Content</th>
                                            <th>Status</th>
                                            <th>SortNum</th>
                                            <th>CreatedAt</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {{range .lists}}
                                        <tr>
                                            <td>
                                                <input type="checkbox" name="input[]" value="{{.ID}}" aria-label="">
                                            </td>
                                            <td>{{.ID}}</td>
                                            <td>{{.Title}}</td>
                                            <td>{{.Content}}</td>
                                            <td>{{.Status}}</td>
                                            <td>{{.SortNum}}</td>
                                            <td>{{.CreatedAt}}</td>
                                        </tr>
                                        {{end}}

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

{{ template "footer" . }}
<script>
</script>
{{end}}